<% layout("/common/layout.html",{"title":"工商资料打印"}){ %>
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-sm-8">
        <h2>个体户营业执照办理列表</h2>
        <ol class="breadcrumb">
            <li><a href="${ctxPath}/admin/main">主页</a></li>
            <li><a href="../view/index">个体户营业执照办理列表</a></li>
            <li class="active">资料打印</li>
        </ol>
    </div>
    <div class="col-sm-4">
        <div class="title-action">
            <div class="btn-group">
                <a class="btn btn-primary btn-outline" href="../view/pass"><i class="fa fa-reply"> </i> 返回列表</a>
            </div>
        </div>
    </div>
</div>
<style>
    #print_merchant_content .table-footer {
        font-size: 1.25rem;
    }

    #print_merchant_content th {
        text-align: center;
    }

    #print_merchant_content th,
    #print_merchant_content td {
        vertical-align: middle;
        line-height: 24px;
        padding: 6px;
    }
</style>

<div class="wrapper wrapper-content">
    <div class="tabs-container" id="tabs-container">
        <div class="panel-body">
            <div class="table-responsive col-sm-7">
                <h3 class="text-center"><a class="btn btn-primary btn-sm btn-outline" id="print_merchant"><i class="fa fa-print"></i>&nbsp;打印个体工商户开业登记表</a></h3>
                <table id="print_merchant_content" class="table table-bordered" role="table" style="page-break-after:always;">
                    <caption>
                        <h2 class="text text-center"><b>个体工商户开业登记表</b></h2>
                    </caption>

                    <tr>
                        <th width="80" rowspan="7">
                            <p>经</p>
                            <p>营</p>
                            <p>者</p>
                        </th>
                        <th width="95">姓&emsp;&emsp;名</th>
                        <td width="200">${member.name!}</td>
                        <th width="95">性&emsp;&emsp;别</th>
                        <td width="200">${decode(member.sex,1,"男",2,"女","男")}</td>
                        <td width="250" rowspan="7" class="text text-muted text-center">相片粘贴处</td>
                    </tr>
                    <tr>
                        <th>身份证号码</th>
                        <td colspan="3">${member.cardNumber!}</td>
                    </tr>
                    <tr>
                        <th>住&emsp;&emsp;所</th>
                        <td colspan="3">${member.address!}</td>
                    </tr>
                    <tr>
                        <th>邮政编码</th>
                        <td>471000</td>
                        <th>移动电话</th>
                        <td>${member.phone!}</td>
                    </tr>
                    <tr>
                        <th>固定电话</th>
                        <td></td>
                        <th>电子邮箱</th>
                        <td>${member.email!}</td>
                    </tr>
                    <tr>
                        <th>政治面貌</th>
                        <td>${member.politicsStatus!}</td>
                        <th>民&emsp;&emsp;族</th>
                        <td>${member.nation!}</td>
                    </tr>
                    <tr>
                        <th>文化程度</th>
                        <td>${webUtil.memberEdu(member.education)}</td>
                        <th>职业状况</th>
                        <td>${member.workStatus!}</td>
                    </tr>
                    <tr>
                        <th>名&emsp;&emsp;称</th>
                        <td colspan="5">${merchantApply.merchantName!}</td>
                    </tr>
                    <tr>
                        <th rowspan="2"><p>备选字号（请选用不同字号）</p></th>
                        <%
                        var one;
                        var two;
                        if(isNotEmpty(merchantBrandOptionalList)){
                            one = merchantBrandOptionalList[0];
                            two = merchantBrandOptionalList.~size >= 2 ? merchantBrandOptionalList[1];
                        }
                        %>
                        <td colspan="5">${one!"&emsp;"}</td>
                    </tr>
                    <tr>
                        <td colspan="5">${two!"&emsp;"}</td>
                    </tr>
                    <tr>
                        <th rowspan="6">组成形式</th>
                        <th rowspan="6">参加经营的家庭成员姓名</th>
                        <td>&nbsp;</td>
                        <th rowspan="6">参加经营的家庭成员身份证号码</th>
                        <th colspan="2">&nbsp;</th>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                        <th>经营范围</th>
                        <td colspan="5">${merchantApply.businessScope!}</td>
                    </tr>
                    <tr>
                        <th rowspan="2">经营场所</th>
                        <th>地&emsp;&emsp;址</th>
                        <td colspan="4">${merchantApply.merchantAddress!}</td>
                    </tr>
                    <tr>
                        <th>邮政编码</th>
                        <td>471000</td>
                        <th>联系电话</th>
                        <td colspan="2">${member.phone!}</td>
                    </tr>
                    <tr>
                        <th>从业人数</th>
                        <td colspan="2">${merchantApply.employees!1}&emsp;&emsp;（人）</td>
                        <th>资金数额</th>
                        <td colspan="2">${merchantApply.registeredCapital!1}&emsp;&emsp;（万元）</td>
                    </tr>
                    <tr>
                        <td colspan="6" class="table-footer">
                            <p>&emsp;&emsp;&emsp;&emsp;本人依照《个体工商户条例》申请登记为个体工商户，提交文件材料真实有效，仅对真实性承担责任。</p>
                            <p>&emsp;&emsp;经营者签名：</p>
                            <p class="text text-right">${trim(date(),'yyyy年MM月dd日')}</p>
                        </td>
                    </tr>
                </table>


            </div>
        </div>
    </div>
</div>

<% } %>
<script type="text/javascript">
    //页面JS调用
    require(['merchant/apply'], function (apply) {
        apply.print();
    });
</script>
